/* layout */
body {
    font-family: 'PingFang SC', 'Microsoft Yahei', 'serif', 'sans-serif', 'cursive', 'fantasy', 'monospace';
}

.wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.rule-wrap {
    padding: 0 10px;
    font-size: 16px;
    color: #666666;
    line-height: 1.5em;
}

.rule-wrap label {
    font-weight: bold;
}

.time-wrap {
    font-size: 40px;
    color: #666666;
    text-align: center;
}

.game-wrap {
    position: relative;
    width: 360px;
    height: 360px;
}

.game-wrap div {
    position: absolute;
    z-index: 1;
    width: 120px;
    height: 120px;
    font-size: 100px;
    color: #666666;
    line-height: 120px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #000000;
    background-color: #333333;
    transition: all 0.3s ease;
}

.game-wrap-9 div {
    width: 120px;
    height: 120px;
    font-size: 80px;
    line-height: 120px;
}

.game-wrap-16 div {
    width: 90px;
    height: 90px;
    font-size: 60px;
    line-height: 90px;
}

.game-wrap-25 div {
    width: 72px;
    height: 72px;
    font-size: 48px;
    line-height: 72px;
}

/* sliding block */
.game9d1 {
    top: 0;
    left: 0;
}

.game9d2 {
    left: 0;
    left: 120px;
}

.game9d3 {
    left: 0;
    left: 240px;
}

.game9d4 {
    top: 120px;
    left: 0;
}

.game9d5 {
    top: 120px;
    left: 120px;
}

.game9d6 {
    top: 120px;
    left: 240px;
}

.game9d7 {
    top: 240px;
    left: 0;
}

.game9d8 {
    top: 240px;
    left: 120px;
}

.game16d1 {
    top: 0;
    left: 0;
}

.game16d2 {
    top: 0;
    left: 90px;
}

.game16d3 {
    top: 0;
    left: 180px;
}

.game16d4 {
    top: 0;
    left: 270px;
}

.game16d5 {
    top: 90px;
    left: 0;
}

.game16d6 {
    top: 90px;
    left: 90px;
}

.game16d7 {
    top: 90px;
    left: 180px;
}

.game16d8 {
    top: 90px;
    left: 270px;
}

.game16d9 {
    top: 180px;
    left: 0;
}

.game16d10 {
    top: 180px;
    left: 90px;
}

.game16d11 {
    top: 180px;
    left: 180px;
}

.game16d12 {
    top: 180px;
    left: 270px;
}

.game16d13 {
    top: 270px;
    left: 0;
}

.game16d14 {
    top: 270px;
    left: 90px;
}

.game16d15 {
    top: 270px;
    left: 180px;
}

.game25d1 {
    top: 0;
    left: 0;
}

.game25d2 {
    top: 0;
    left: 72px;
}

.game25d3 {
    top: 0;
    left: 144px;
}

.game25d4 {
    top: 0;
    left: 216px;
}

.game25d5 {
    top: 0;
    left: 288px;
}

.game25d6 {
    top: 72px;
    left: 0;
}

.game25d7 {
    top: 72px;
    left: 72px;
}

.game25d8 {
    top: 72px;
    left: 144px;
}

.game25d9 {
    top: 72px;
    left: 216px;
}

.game25d10 {
    top: 72px;
    left: 288px;
}

.game25d11 {
    top: 144px;
    left: 0;
}

.game25d12 {
    top: 144px;
    left: 72px;
}

.game25d13 {
    top: 144px;
    left: 144px;
}

.game25d14 {
    top: 144px;
    left: 216px;
}

.game25d15 {
    top: 144px;
    left: 288px;
}

.game25d16 {
    top: 216px;
    left: 0;
}

.game25d17 {
    top: 216px;
    left: 72px;
}

.game25d18 {
    top: 216px;
    left: 144px;
}

.game25d19 {
    top: 216px;
    left: 216px;
}

.game25d20 {
    top: 216px;
    left: 288px;
}

.game25d21 {
    top: 288px;
    left: 0;
}

.game25d22 {
    top: 288px;
    left: 72px;
}

.game25d23 {
    top: 288px;
    left: 144px;
}

.game25d24 {
    top: 288px;
    left: 216px;
}

/* button option */
.button-wrap {
    display: flex;
    width: 360px;
}

.button-wrap button {
    flex: 1;
    height: 40px;
    font-size: 20px;
    color: #666666;
    outline: none;
    border: none;
    border-radius: 6px;
    background-color: #333333;
    cursor: pointer;
}

.button-wrap button:not(:first-child) {
    margin-left: 10px;
}

/* dialog */
.dialog-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 999;
    width: 70vw;
    border-radius: 6px;
    background-color: #333333;
    box-shadow: 0 0 10px #cccccc;
    transition: all 0.3s cubic-bezier(0, 1.3, 0.74, 1.95);
    overflow: hidden;
}

.dialog-wrap p {
    padding: 40px 10px;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    line-height: 1.5em;
}

.dialog-buttons {
    display: flex;
    width: 100%;
    border-top: 1px solid #666666;
}

.dialog-buttons button {
    flex: 1;
    height: 50px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: transparent;
}

.dialog-btn-cancel {
    color: #666666;
}

.dialog-btn-again {
    color: #ffffff;
    border-left: 1px solid #666666 !important;
}
